/** Implementation of Numeric class.
 * @file
 * @author Jeremy Schultz
 */
#include "Numeric.h"

using namespace std;

//-----------------------------------------------------------------------------
// Constructor
Numeric::Numeric(int _value) : Token(Token::NUMBER)	{
	value = _value;
}

//-----------------------------------------------------------------------------
// Getter - value
int Numeric::Value()	{
	return value;
}

//-----------------------------------------------------------------------------
// toString
string Numeric::toString()	{
	stringstream ss;

	ss << Token::toString();
	ss << " value: " << value;

	return ss.str();
}
